/* 
 * File:   MapSite.cpp
 * Author: chb
 * 
 * Created on 5. September 2009, 11:34
 */

#include "MapSite.h"

MapSite::MapSite(const unsigned int posX, const unsigned int posY) {
    _position = new Position(posX, posY);
    
    _leftSide = 0;
    _rightSide = 0;
    _bottomSide = 0;
    _topSite = 0;
}

MapSite::MapSite(const MapSite& orig) {
}

MapSite::~MapSite() {
}


const Position *MapSite::getPosition() const {
    return _position;
}

MapSite* MapSite::getLeftSide(){
    return _leftSide;
}
MapSite* MapSite::getRightSide(){
    return _rightSide;
}
MapSite* MapSite::getBottomSite(){
    return _bottomSide;
}
MapSite* MapSite::getTopSite(){
    return _topSite;
}

void MapSite::setTopSide(MapSite *s) {
    _topSite = s;
}

void MapSite::setBottomSide(MapSite *s) {
    _bottomSide = s;
}

void MapSite::setLeftSide(MapSite *s) {
    _leftSide = s;
}

void MapSite::setRightSide(MapSite *s) {
    _rightSide = s;
}